<template>
	<view>
		<view class="find">
			<input type="text" v-model="hhh" placeholder="请输入搜索内容"  />
			<button @click="getData()">点击搜索</button>
		</view>
		<!-- <button type="default" @click="">hhh</button> -->
		<view v-for="(item,i) in list":key = "i" >
			<view class="ht">
				<view>
					<image class="a" img :src="item.img1" mode=""></image>
				</view>
				<view class="hts">
					<view class="b">
						<text class="item-xx">{{item.title}}</text>
					</view>
					<view class="c">
						<text>{{item.content}}</text>
					</view>
					<view class="d">
						<view class="hotimage">
							<image class="img1" src="../../../static/y10.jpg"></image>
							<image class="img2" src="../../../static/y3.jpg"></image>
							<image class="img3" src="../../../static/y6.jpg"></image>
							<image class="img4" src="../../../static/y5.jpg"></image>
						</view>
						<view class="hotimage-x">
							{{ item.viewpoint }}
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		
		data() {
			return {
				title: 'Hello',
				list:[],
				
				hhh : ""
			}
		},
		onLoad() {
			this.getData()
		},
		created(){
			
		},
		
		methods: {
			getData(){
				console.log("------------执行展示操作-----------");
				uniCloud.callFunction({
					name:"topic-find",
					data:{
						keyword:this.hhh
					},
					success:(e)=> {
					console.log(e.result);
					this.list=e.result.data;
					}
				})
				}
		}
	}
</script>

<style>
.find{
	background-color: #A9C3D9;
	border-radius: 20rpx;
	margin: 50rpx;
	height: 50rpx;
	text-align: center;
}
.find button{
	width: 200rpx;
	margin-top: 30rpx;
	height: 80rpx;
	
}
.content{
	background-color: #aaaa7f;
	height: 100vw;
	margin: 50rpx;
	border-radius: 50rpx;
	padding: 30rpx;
	
}
.hotimage{
	margin-right: 120rpx;
}

.hotimage-x{
	margin-right: 15rpx;
	font-size: 25rpx;
}

.hotimage image{
	width: 30rpx;
	height: 30rpx;
	position: absolute;
}

.hotimage .img1{
	left: 20rpx;
}

.hotimage .img2{
	left: 40rpx;
}

.hotimage .img3{
	left: 60rpx;
}

.hotimage .img4{
	left: 80rpx;
}

.items{
	position: fixed;
	z-index: 1;
	background-color: #FFFFFF;
	width:100%;
}

.bt{
	width: 100rpx;
	height: 70rpx;
}

.item{
	display: flex;
	flex-direction: row;
	margin: 5rpx 10rpx 20rpx 10rpx;
	font-size: 40rpx;
	color: #333333;
	background-color: #FFFFFF;
}

.item-x{
	margin-right: 45rpx;
	text-align: center;
}

.item-y{
	margin-top: 10rpx;
	margin-left: 180rpx;
	
}

.item-xx{
	font-weight: bold;
}

.ht{
	border-bottom: 1rpx solid #CCD0D9;
	margin-bottom: -12rpx;
}

.hts{
	margin-left: 20rpx;
}
.a{
	width: 30rpx;
	height: 30rpx;
	margin-top: 13rpx;
}

.c{
	margin-top: 13rpx;
}
.d{
	margin-bottom: 20rpx;
	display: flex;
	flex-direction: row;
	white-space: nowrap;
	margin-top: 13rpx;
}
</style>
